m = int(input('请输入一个10~200之间的整数:'));
for n in range(1,m):
      flag=True
      for i in range(2,n):
            if n%i==0:
                  flag=False
                  break
      if flag==True:
            print(n,end=" ")